package com.my.design.structural.proxy.JdkProxy.testjdk;

/**
 * @author 代廷波
 * @className: Test
 * @description:
 * @create 2018/12/21 0021-15:55
 **/
public class Test {
    public static void main(String[] args) throws Exception {
        Moveable m = (Moveable) Proxy.newProxyInstance(Car.class, new TimeHandler(new Car()));
        String s = m.move();
        System.out.println(s);
    }
}
